package org.jeecg.modules.iot.feign.client;

import org.jeecg.config.FeignConfig;
import org.jeecg.modules.iot.feign.factory.ParkClientFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 常规feign接口定义
 * @author: zyf
 * @date: 2022/04/21
 */
@FeignClient(value = "clb-park", configuration = FeignConfig.class,fallbackFactory = ParkClientFactory.class)
@Component
public interface ParkClient {

    /**
     * feign测试方法
     * @return
     */
    @GetMapping(value = "/park/hello")
    String parkHello();
}
